package com.jianglin;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @author jianglin
 */
public class CreatPasswordEncoderTest {
    public static void main(String[] args) {
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        //想加密的密码
        String rawPassword = "123456";
        String encodedPassword = encoder.encode(rawPassword);
        System.out.println("加密后的密码是: " + encodedPassword);
    }
}